home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / N-P / PaintToolUnit.cpt / README < prev   
Encoding:
Text File  |  1988-10-31  |  1.5 KB  |  43 lines  |  [TEXT/TPAS]

  1. Hello.
  2.  
  3. Included is a Turbo Pascal unit which supports your basic macintosh paint
  4. tools.  These are not meant to be used in sophisticated applications whose
  5. main purpose is graphics, but for applications that you might want to spice
  6. up a bit with the ability of graphics without having to do the work.
  7.  
  8. All information, such as, pen size and pen pattern, is passed via the current
  9. grafport.
  10.  
  11. The main procedure that you call is...
  12.  
  13. DoPaintTools (which : Integer; where : Point; modifiers : Integer);
  14.  
  15. which       - which tool you want to use.
  16. where       - where the mouse was click in local coordinates of the current
  17.               grafport.
  18. modifiers   - the modifiers field of the current event.
  19.  
  20. You can see how this is used in the example program.
  21.  
  22. The current version of Paint Tools is 1.0.0.
  23.  
  24. Paint Tools uses memory for most of its tools so make sure at least 100K is
  25. free.  If PTError does not return noErr, and if it does not return either 
  26. TUnknown or TUnImp, then it is returning a memory manager error.
  27.  
  28. Don't forget to call InitPaintTools after initializing all the other
  29. macintosh managers.
  30.  
  31. The only modifier key now used is the command-key.  Using it while drawing
  32. will frame a rectangle in the current pattern, for example.
  33.  
  34. If you do use Paint Tools in an application that is not for your own private
  35. use please include in your about box the following in a 9 point font of your
  36. choice.
  37.  
  38. "Portions of the graphics code, ©1988 Kevin Parichan"
  39.  
  40. Thank you.
  41.  
  42. Kevin Paricha - KPARICHAN
  43.